package com.ph.feign;

import com.ph.pojo.Result;
import com.ph.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("group-service")
public interface GroupFeign {
    @GetMapping("/ignore/sys/user/findByPhone")
    Result<User> userFindByPhone(@RequestParam Long phone);

    @GetMapping("/ignore/sys/user/findById/{id}")
    Result<User> keepFindById(@PathVariable Integer id);

    @GetMapping("/ignore/sys/user/findById")
    Result<List<User>> keepFindById(@RequestParam List<Integer> ids);
}
